package com.asiainfo.ssm.execute.dao.impl;

import java.rmi.RemoteException;

import com.asiainfo.ssm.execute.bo.BOExecErrOrderEngine;
import com.asiainfo.ssm.execute.dao.interfaces.IExecErrOrderDAO;
import com.asiainfo.ssm.execute.ivalues.IBOExecErrOrderValue;

public class ExecErrOrderDAOImpl implements IExecErrOrderDAO {

	@Override
	public void saveExecErrOrder(IBOExecErrOrderValue[] values) throws Exception, RemoteException {
		for (IBOExecErrOrderValue boExecErrOrderValue : values) { 
        	if (boExecErrOrderValue.isNew())
    		{
    			long newId = BOExecErrOrderEngine.getNewId().longValue();
    			boExecErrOrderValue.setOrdId(newId); 
    		} 
        }
		BOExecErrOrderEngine.saveBatch(values);
	}

	 

}
